package com.feiyuan.book.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.feiyuan.common.utils.PageUtils;
import com.feiyuan.common.utils.Query;

import com.feiyuan.book.dao.BookClassifyDao;
import com.feiyuan.book.entity.BookClassifyEntity;
import com.feiyuan.book.service.BookClassifyService;


@Service("bookClassifyService")
public class BookClassifyServiceImpl extends ServiceImpl<BookClassifyDao, BookClassifyEntity> implements BookClassifyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BookClassifyEntity> page = this.page(
                new Query<BookClassifyEntity>().getPage(params),
                new QueryWrapper<BookClassifyEntity>()
        );

        return new PageUtils(page);
    }

}